<?php
	function renderHomeNav()
	{
	  $s = PathHelper::getBaseUrl();
	  echo '<ul class="admin-nav">
			  <li><a href="'.$s.'/login.php">Login</a></li>
			</ul>';
	}
	function renderAdminNav()
	{
		$s = PathHelper::getBaseUrl();
		echo '<ul class="admin-nav">
			<li><a href="'.$s.'/Views/Enrolments/enrolment_form.php">Enrollment Form</a></li>
			<li><a href="'.$s.'/Views/Admin/student_requirements.php">Manage Student Requirements</a></li>
			<li><a href="'.$s.'/Views/Admin/fees.php">Manage Fees</a></li>
			<li><a href="'.$s.'/Views/Admin/reports.php">Reports</a></li><br />
		  <li><a href="'.$s.'/Views/Admin/manage_year_level.php">Manage Year Levels and Subjects</a></li>
		  <li><a href="'.$s.'/Views/Admin/manage_teachers.php">Manage Teachers</a></li>
		  <li><a href="'.$s.'/Views/Admin/payments.php">Manage Payments</a></li>
		  <li><a href="'.$s.'/Views/Admin/input_grades.php">Input Grades</a></li>';

		if($_SESSION['loggedUser'])
		{
			echo '<li><a href="' . $s . '/index.php?logout=true">Log Out</a></li>';
		}
		echo '</ul>';
	}
	function renderHeaderStyles()
	{
	  echo '<link type="text/css" href="../../assets/styles.css" rel="stylesheet">
		  <link type="text/css" href="../../assets/tabs.css" rel="stylesheet">
		  <script type="text/javascript" src="../assets/js/jquery-1.6.2.min.js"></script>
		  <script type="text/javascript" src="../assets/js/jquery-ui-1.8.16.custom.min.js"></script>
		  <script type="text/javascript" src="../assets/js/jquery.ui.tabs.js"></script>';
	}
	function renderMainNav()
	{
		$s = PathHelper::getBaseUrl();
		echo '<ul class="admin-nav">
			<li><a href="'.$s.'/index.php">Home</a></li>
			<li><a href="'.$s.'/Views/Admin/manage_year_level.php">Manage Year Levels and Subjects</a></li>
			<li><a href="'.$s.'/Views/Admin/manage_teachers.php">Manage Teachers</a></li>
			<li><a href="'.$s.'/Views/Admin/fees.php">Manage Fees</a></li>
		</ul>';
	}
	function renderStudentView()
	{
    $s = PathHelper::getBaseUrl();
    //
    if($_SESSION['loggedUser'])
      $uid= $_SESSION['loggedUser']['UserId'];
    //
		echo '<ul class="admin-nav">
			<li><a href="'.$s.'/Views/Students/view.php">Profile</a></li>
			<li><a href="'.$s.'/Views/Students/view_payment_history.php">View Payment History</a></li>
			<li><a href="'.$s.'/Views/Students/view_report_card.php">View Report Card</a></li>
			<li><a href="'.$s.'/Views/Students/view_report_card.php">Change Password</a></li>
			';

			if($_SESSION['loggedUser'])
  		{
  			echo '<li><a href="' . $s . '/index.php?logout=true">Log Out</a></li>';
  		}
  		echo '</ul>';
	}
?>